package com.jinlejia.erp.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2019/1/10 0010.
 */

public class PactAttachBean {

    /**
     * attachFiles : [{"attachUrl":"T1VzZTBvxT1R4cSCrK.png","attachName":"合同照片"},{"attachUrl":"T1VzZTBvxT1R4cSCrK.png","attachName":"合同照片"}]
     * htmlUrl : T1HFZTBK_T1RXx1p6K.html
     * pactOrAttachName : 房屋买卖居间合同
     * type : 2
     * isMust : 1
     */

    private String htmlUrl;
    private String pactOrAttachName;
    private int type;
    private int isMust;
    private ArrayList<AttachBean> attachFiles;

    public String getHtmlUrl() {
        return htmlUrl;
    }

    public void setHtmlUrl(String htmlUrl) {
        this.htmlUrl = htmlUrl;
    }

    public String getPactOrAttachName() {
        return pactOrAttachName;
    }

    public void setPactOrAttachName(String pactOrAttachName) {
        this.pactOrAttachName = pactOrAttachName;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getIsMust() {
        return isMust;
    }

    public void setIsMust(int isMust) {
        this.isMust = isMust;
    }

    public ArrayList<AttachBean> getAttachFiles() {
        if( null == attachFiles ) {
            return new ArrayList<AttachBean>();
        }else{
            return attachFiles;
        }
    }

    public void setAttachFiles(ArrayList<AttachBean> attachFiles) {
        this.attachFiles = attachFiles;
    }

    @Override
    public String toString() {
        return "PactAttachBean{" +
                "htmlUrl='" + htmlUrl + '\'' +
                ", pactOrAttachName='" + pactOrAttachName + '\'' +
                ", type=" + type +
                ", isMust=" + isMust +
                ", attachFiles=" + attachFiles +
                '}';
    }
}
